Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCDA-7900: Add integration test validation for opt-out import #963

Merged
merged 53 commits into from
Jul 10, 2024

Conversation

laurenkrugen-navapbc
Copy link
Contributor

@laurenkrugen-navapbc laurenkrugen-navapbc commented Jun 25, 2024

🎫 Ticket

https://jira.cms.gov/browse/BCDA-7900

🛠 Changes

Integration testing for opt-out lambda has had additional steps added:

  • queries the database to see if the opt out file was ingested
  • queries the database to see if suppression entries were created from the ingested file

ℹ️ Context

Integration testing is required to ensure that future changes will not break existing functionality and that the opt-out lambda is working as expected.

🧪 Validation

Ran using happy and unhappy paths. Validated that sensitive data is not printed to stderr or stdout in the event of an issue.

@laurenkrugen-navapbc laurenkrugen-navapbc changed the title BCDA-7900 BCDA-7900: Add integration test validation for opt-out import Jun 26, 2024
@laurenkrugen-navapbc
Copy link
Contributor Author

functionality is working as expected, but the dev env lambda is occasionally getting to the test file before the test lambda does, which is resulting in integration test failures. Success run: https://github.com/CMSgov/bcda-app/actions/runs/9879612164/job/27286247165

@laurenkrugen-navapbc laurenkrugen-navapbc merged commit 95f1d55 into main Jul 10, 2024
5 checks passed
@laurenkrugen-navapbc laurenkrugen-navapbc deleted the lauren/BCDA-7900 branch July 10, 2024 20:03
kyeah added a commit that referenced this pull request Jul 11, 2024
…ic subfolders (#974)

## 🎫 Ticket

https://jira.cms.gov/browse/BCDA-7900

## 🛠 Changes

- Update dev/test CCLF and Opt Out S3 Importers to only import specific
subfolders

## ℹ️ Context

As part of improving integration tests, it was observed that dev and
test were competing for the same files in BFD Test S3. This changes the
app code for those environments to avoid competition and only look for
files in environment-relevant subfolders (e.g. `bcda/in/test/` instead
of `bcda/in/`.)

## 🧪 Validation

See #963 for successful tests, yay!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants